package com.gupao.gupaoeduvippattern.javaBase.thread.day01.thread;

/**
 * @author Administrator
 * @date 2020-12-04 16:17
 */
public class TestThread {

    public static void main(String[] args) {

        for(int i=1; i<=3; i++){
            System.out.println(Thread.currentThread() + ":主线程");
        }

        Cat cat = new Cat();
        Thread t1 = new Thread(cat);
        t1.start();

        Dog dog = new Dog();
        Thread t2 = new Thread(dog);
        t2.start();

    }

}
